<?php
/**
 * @Name: RoleNodeModel.php
 * @Author: yashuai
 */

namespace App\Http\Model\Rbac;

class RoleNodeModel extends BaseModel
{

    protected $table = 'admin_role_node';

    public function node()
    {
        return $this->hasOne(NodeModel::class, 'NodeID', 'NodeID')
            ->select(['NodeID', 'NodeType', 'ParentID']);
    }

}
